/**
@author		Jong Min, Lee
@date		  01/15/2014
@breif		Monitor class

copyright(c) Tae Young Soft. All right reserved. 2014
*/
#include "stdafx.h"
#include "Taurus_Common/Monitor.h"

CMonitor::CMonitor()
  : m_hMonitor(NULL)
  , m_enumResType(MonitorResolution_Normal)
{}

CMonitor::~CMonitor()
{}

DWORD CMonitor::init(HMONITOR hMonitor, 
                     const MONITORINFOEX& stMonitorInfo, 
                     const DEVMODE& stDeviceInfo, 
                     const MonitorResolutionType enumResType)
{
  if(hMonitor == NULL)
    return ERROR_INVALID_PARAMETER;

  m_hMonitor = hMonitor;
  m_stMonitorInfo = stMonitorInfo;
  m_stDeviceInfo  = stDeviceInfo;
  m_enumResType = enumResType;
  return ERROR_SUCCESS;
}

void CMonitor::setWorkRect(const RECT& rcRect)
{
  m_stMonitorInfo.rcWork = rcRect;
}